package org.budo.execute.limit.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 指定方法最大并发数
 * 
 * @author limingwei
 * @see org.budo.execute.limit.ExecuteLimitSupport
 * @see org.budo.execute.limit.spring.aop.ExecuteLimitAopInterceptor
 * @see org.budo.execute.limit.spring.mvc.ExecuteLimitMvcInterceptor
 */
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface ExecuteLimit {
    /**
     * 指定方法最大并发数
     */
    int value() default -1;
}